package com.example.warehouse.controller;

import com.example.warehouse.bus.controller.BusInportController;
import com.example.warehouse.bus.pojo.param.BusInportAddNewParam;
import com.example.warehouse.common.web.JsonResult;
import com.example.warehouse.dict.SqlScript;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.http.MediaType;
import org.springframework.test.context.jdbc.Sql;
import org.springframework.test.web.servlet.MockMvc;
import org.springframework.test.web.servlet.request.MockMvcRequestBuilders;
import org.springframework.test.web.servlet.result.MockMvcResultHandlers;

/**
 * 进货(Inport)的Controller测试类
 * @author XXH
 */
@SpringBootTest
@Sql(scripts = {SqlScript.SCRIPT_TRUNCATE,SqlScript.SCRIPT_INSERT_DATA})
public class busInportControllerTsets {


    @Autowired
    BusInportController controller;

//    @Test
//    void insert(){
//        BusInportAddNewParam busInportAddNewParam = new BusInportAddNewParam();
//        busInportAddNewParam.setNumber(200);
//
//        JsonResult rows =controller.insert(busInportAddNewParam);
//        System.out.println("插入数据完成,受影响行数:"+rows);
//        System.out.println("插入的参数"+busInportAddNewParam);
//    }

//    @Test
//    void delectById(){
//        JsonResult rows =controller.deleteById(1);
//        System.out.println("删除数据完成,受影响行数:"+rows);
//    }



}
